package com.github.yoojia.mqtt;

/**
 * @author Yoojia Chen (yoojiachen@gmail.com)
 * @since 1.0
 */
public class Objects {

    private Objects(){}

    public static void notNull(Object...obj){
        for (Object o : obj){
            requireNotNull(o);
        }
    }

    public static <T> T requireNotNull(T obj){
        if (obj == null)
            throw new NullPointerException("Required not null");
        return obj;
    }
}
